<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  <head>
    <meta http-equiv="Content-Type" content="text/html charset=utf8" />
    <meta name="author" content="stern_d, merbou_l, diallo_l" />
    <meta name="description" content="Rattrapage HTML, CSS, PHP" />
    <meta name="keywords" content="tp, rattrapage, html, webacademie, css, php, sql, piscine, openpiscine" />
    <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
    <title>After-Piscine</title>
  </head>

<body>

<?php include('headerperso.template'); ?>  	
    
<!--DEBUT CONTENT-->
<div class="content">
	<div class="wrapper">
            
	<h1>Espace perso Learn AfterPiscine</h1>
    <?php
	if($_POST!=NULL)
	{
		if($_POST['jour'] == 'un')
		{
		echo '<object data="../doc/ordinateur.pdf" type="application/pdf" width="850" height="800">
  		alt : <a href="../doc/ordinateur.pdf">test.pdf</a>
		</object>';
		}
		else if($_POST['jour'] == 'deux')
		{
		echo '<object data="../doc/ordinateur.pdf" type="application/pdf" width="850" height="800">
  		alt : <a href="../doc/ordinateur.pdf">test.pdf</a>
		</object>';
		}
		else if($_POST['jour'] == 'trois')
		{
		echo '<object data="../doc/ordinateur.pdf" type="application/pdf" width="850" height="800">
  		alt : <a href="../doc/ordinateur.pdf">test.pdf</a>
		</object>';
		}
		else if($_POST['jour'] == 'quatre')
		{
		echo '<object data="../doc/ordinateur.pdf" type="application/pdf" width="850" height="800">
  		alt : <a href="../doc/ordinateur.pdf">test.pdf</a>
		</object>';
		}
	}
	else{
	?>  
	<p>Veuillez s&eacute;lectionner un jour :</p>

	<p><strong>JOUR</strong><br />
	<form action="elearning.php" method="post">
    <select name="jour">
    <option selected="selected" value="un"> Jour 1 | PHP/HTML</option>
	<option value="deux">Jour 2 | PHP/HTML</option>
	<option value="trois">Jour 3 | TP1</option>
   	<option value="quatre">Jour 4 | TP2</option>
	</select></p> 
    <p><input name="submit" type="image" value="GOFORM" src="../img/goform.jpg" alt="go" /></p>
    </form>	
    <?php 
	}
	?>	
	</div>

	
<!--FIN CONTENT-->

<?php
include('footer.template'); 
?>    

</body>

</html>



